﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Superherochat.Models
{
    public class ChatLog
    {
       public List<MessageInfo> messages { get; set; }
       
       private static ChatLog instance;
       private ChatLog() { messages = new List<MessageInfo>(); }

       public static ChatLog Instance
       {
          get 
          {
             if (instance == null)
             {
                 instance = new ChatLog();
             }
             return instance;
          }
       }
    }

    public class MessageInfo
    {
        public DateTime timestamp { get; set; }
        public string message { get; set; }
        public string userName { get; set; }
    }
}